#ifndef _REPORT_TABLE_H
#define _REPORT_TABLE_H

#include <map>

using namespace std;

/*  Class to handle report table
    The class is responsible to storing the values
    as well as generating reports */
class ReportTable
{
  /* Variable to store the table name */
  char*         _table_name;

  /* Variable to store the node value as key,
     and CPU count as value */
  map<int, int> _report_table;

  public:
    /* The constructor.
       It will set the name of the table name. */
    ReportTable(char* name);
    
    /* Insert the key and value to report table */
    void insert(int key, int val);

    /* Generate the report.
       The report is generated at the top directory.
     
       The name of the report is
       [table name]_[number of entries]_[time stamp].txt
     
       The format of the report is
       [key] [value]
    */
    void gen_report();
};


#endif
